﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace LanguageDetector.TrainerConsole
{
    internal enum OptionType : int
    {
        Language = 1,
        Optional = 2,
        Source = 3,
    }

    internal class Option
    {
        public Option(string flag, OptionType type, string regexp)
        {
            _flag = flag;
            _type = type;
            _re = new Regex(regexp, RegexOptions.IgnoreCase);
        }

        OptionType _type;
        public OptionType OptionType
        {
            get { return _type; }
        }

        string _flag;
        public string Flag
        {
            get { return _flag; }
        }

        Regex _re;
        public Regex RE
        {
            get { return _re; }
        }

        public string Comment { get; set; }
        public string Value { get; set; }
    }
}
